/**
 * 配置编译环境和线上环境之间的切换
 * 
 * baseUrl 域名地址
 * uploadVideoUrl 视频上传地址
 * uploadImageUrl 图片上传
 * quniuUploadUrl 音频上传
 * downImgHost 下载地址（图片需加下载地址）
 */
let baseUrl, uploadImageUrl, quniuUploadUrl, downImgHost, uploadVideoUrl, huaweiUploadImageUrl, quniudownHost, quniuAudioDownHost;

if (process.env.NODE_ENV == 'development') {
	baseUrl = 'http://192.168.0.160';
} else if (process.env.NODE_ENV == 'production') {
	baseUrl = 'https://user.xlingual.net/xlingual';
}

// baseUrl = 'https://user.xlingual.net/xlingual';

uploadVideoUrl = baseUrl + '/xlingual/video/v1';
uploadImageUrl = baseUrl + '/upload/v1';	// 本地图片上传
downImgHost = baseUrl + '/download/v1/';

huaweiUploadImageUrl = baseUrl + '/video/v1/uploadVideoCoverImage';	// 华为云图片上传
quniuUploadUrl = 'http://upload-z2.qiniup.com';	// 七牛图片上传
quniudownHost = 'https://cdn-users.xlingual.net/';	// 七牛图片下载
quniuAudioDownHost = 'http://cdn-users-pub.xlingual.net/';	// 七牛音频下载

export {
	baseUrl,
	uploadImageUrl,
	quniuUploadUrl,
	quniudownHost,
	downImgHost,
	uploadVideoUrl,
	huaweiUploadImageUrl,
	quniuAudioDownHost
}